package com.cmf.myproject.dal.mybatis.model;

import java.io.Serializable;
import java.util.Date;

public class SysRole implements Serializable {
    /**
     * 
     * @mbggenerated
     */
    private Long id;

    /**
     * 权限名称
     * @mbggenerated
     */
    private String roleName;

    /**
     * 权限编码
     * @mbggenerated
     */
    private String roleCode;

    /**
     * 
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 
     * @mbggenerated
     */
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_role
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     * @param id 
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 权限名称
     * @mbggenerated
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * 权限名称
     * @param roleName 权限名称
     * @mbggenerated
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    /**
     * 权限编码
     * @mbggenerated
     */
    public String getRoleCode() {
        return roleCode;
    }

    /**
     * 权限编码
     * @param roleCode 权限编码
     * @mbggenerated
     */
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode == null ? null : roleCode.trim();
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     * @param createTime 
     * @mbggenerated
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     * @param updateTime 
     * @mbggenerated
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_role
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleName=").append(roleName);
        sb.append(", roleCode=").append(roleCode);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}